/*--------------------------------------------------*/
/*VirtualSociety System ServiceModuleTemplate Main File*/
/*CreateBy SRPLab                */
/*CreateDate: 2011-3-29  */
/*--------------------------------------------------*/
#include "SRPSAGGLibEngine_VSHeader.h"

/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*Function SAggColorSpanBrushClass Is Extracted From ScriptFile */
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
#define SAGGCOLORSPANBRUSHCLASS_OBJECT_DEPENDINDEX                                                   0x00000001
#define SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX                                   0X00000002
#define SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX                                    0X00000003

VS_INT32 SRPCALLBACK SAggColorSpanBrushClass_QueryObjectInfo(VS_OBJECTMODULEINFO *VSObjectModuleInfo)
{
    VSObjectModuleInfo -> ObjectVersion = 0;
    VSObjectModuleInfo -> ObjectSubVersion = 0;
    VSObjectModuleInfo -> ObjcetBugFixVersion = 0;
    VSObjectModuleInfo -> VSVersion = 0;
    VSObjectModuleInfo -> VSSubVersion = 0;

    VSObjectModuleInfo -> CreateTime.wYear = 2011;
    VSObjectModuleInfo -> CreateTime.wMonth = 3;
    VSObjectModuleInfo -> CreateTime.wDay = 29;
    VSObjectModuleInfo -> UpdateTime.wYear = 2011;
    VSObjectModuleInfo -> UpdateTime.wMonth = 3;
    VSObjectModuleInfo -> UpdateTime.wDay = 29;

    strcpy( VSObjectModuleInfo -> AuthorityInfo, "" );
    strcpy( VSObjectModuleInfo -> LicenseInfo, "" );
    strcpy( VSObjectModuleInfo -> ExtendInfo, "" );

    return 0;
}

VS_INT32 SRPCALLBACK SAggColorSpanBrushClass_RequestRegisterObject()
{
    VS_DEPENDATTRIBUTE LocalDependAttribute[512];  /*---set a large number*/
    VS_INT32 DependIndexNumber,DependIndex[64];

    //------register object depend
    VSATTRDEPEND_SAGGCOLORSPANBRUSHCLASS(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggColorSpanBrushClass,SAGGCOLORSPANBRUSHCLASS_OBJECT_DEPENDINDEX,VSOBJID_SAggColorSpanBrushClass,VSMODULEDEPEND_OBJECT,VSATTRDEPENDNUM_SAGGCOLORSPANBRUSHCLASS,LocalDependAttribute);

    //------register function depend
    VSFUNCRETURNDEPEND_SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggColorSpanBrushClass,SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX,VSFUNCID_SAggColorSpanBrushClass_OVL_C_Clear,VSMODULEDEPEND_FUNCRETURN,VSFUNCRETURNDEPENDNUM_SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR,LocalDependAttribute);

    VSFUNCPARAMDEPEND_SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR(LocalDependAttribute);
    pSRP -> RegisterObjectDependency( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggColorSpanBrushClass,SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX,VSFUNCID_SAggColorSpanBrushClass_OVL_C_Clear,VSMODULEDEPEND_FUNCPARA,VSFUNCPARAMDEPENDNUM_SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR,LocalDependAttribute);

    //------object function
    DependIndexNumber = 3;
    DependIndex[0] = SAGGCOLORSPANBRUSHCLASS_OBJECT_DEPENDINDEX;
    DependIndex[1] = SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCRETURN_DEPENDINDEX;
    DependIndex[2] = SAGGCOLORSPANBRUSHCLASS_OVL_C_CLEAR_FUNCPARAM_DEPENDINDEX;
    pSRP -> RegisterObjectFunction( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggColorSpanBrushClass,VSFUNCID_SAggColorSpanBrushClass_OVL_C_Clear,(void *)SAggColorSpanBrushClass_OVL_C_Clear,DependIndexNumber,DependIndex);

    //------object message process
    pSRP -> RegisterQueryObjectInfo( VSIMPORTMODULEID_BasicModule,VSOBJID_SAggColorSpanBrushClass,(void *)SAggColorSpanBrushClass_QueryObjectInfo);

    return 0;
}

